<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>

    <!-- import CSS -->
    <link
      rel="stylesheet"
      href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css"
    />
  </head>
  <body>
    <div id="app">
      <template>
        <h1>员工列表</h1>
        <el-table :data="arr" style="width: 800px">
          <el-table-column
            prop="name"
            width="200"
            label="名称"
          ></el-table-column>
          <el-table-column
            prop="salary"
            width="200"
            label="工资"
          ></el-table-column>
          <el-table-column prop="job" label="工作"></el-table-column>
        </el-table>
      </template>
    </div>
  </body>
  <!-- import Vue before Element -->
  <script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
  <!-- import JavaScript -->
  <script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
  <script>
    let v = new Vue({
      el: "#app",
      data: function () {
        return {
          arr: [
            { name: "张三", salary: 5000, job: "销售" },
            { name: "李四", salary: 6000, job: "人事" },
            { name: "王五", salary: 7000, job: "程序员" },
          ],
        };
      },
      methods: {},
    });
  </script>
</html>
